package com.ruoyi.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 合伙人提现记录对象 partners_cash_record
 * 
 * @author ruoyi
 * @date 2021-03-24
 */
public class PartnersCashRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 提现记录主键 */
    private Long cashid;

    /** 合伙人ID */
    @Excel(name = "合伙人ID")
    private Long partnersid;

    /** 提现金额 */
    @Excel(name = "提现金额")
    private BigDecimal amount;

    /** 提现手续费 */
    @Excel(name = "提现手续费")
    private BigDecimal cashcharges;

    /** 1.审核中 2.通过 3.驳回 4.免审核 */
    @Excel(name = "1.审核中 2.通过 3.驳回 4.免审核")
    private Long status;

    /** 驳回理由 */
    @Excel(name = "驳回理由")
    private String nayreason;

    /** 申请时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "申请时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date ctime;

    /** 处理时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date utime;

    public void setCashid(Long cashid) 
    {
        this.cashid = cashid;
    }

    public Long getCashid() 
    {
        return cashid;
    }
    public void setPartnersid(Long partnersid) 
    {
        this.partnersid = partnersid;
    }

    public Long getPartnersid() 
    {
        return partnersid;
    }
    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }
    public void setCashcharges(BigDecimal cashcharges) 
    {
        this.cashcharges = cashcharges;
    }

    public BigDecimal getCashcharges() 
    {
        return cashcharges;
    }
    public void setStatus(Long status) 
    {
        this.status = status;
    }

    public Long getStatus() 
    {
        return status;
    }
    public void setNayreason(String nayreason) 
    {
        this.nayreason = nayreason;
    }

    public String getNayreason() 
    {
        return nayreason;
    }
    public void setCtime(Date ctime) 
    {
        this.ctime = ctime;
    }

    public Date getCtime() 
    {
        return ctime;
    }
    public void setUtime(Date utime) 
    {
        this.utime = utime;
    }

    public Date getUtime() 
    {
        return utime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("cashid", getCashid())
            .append("partnersid", getPartnersid())
            .append("amount", getAmount())
            .append("cashcharges", getCashcharges())
            .append("status", getStatus())
            .append("nayreason", getNayreason())
            .append("ctime", getCtime())
            .append("utime", getUtime())
            .toString();
    }
}
